import React, { memo, useEffect } from "react";

const DefendProtect = memo(() => {
  useEffect(() => {
    let newIfram = window.document.getElementById("iframeId");
    let iframeWindow = newIfram.contentWindow;
    let iframeDocument = newIfram.contentDocument;
    console.log("newIfram", newIfram);
  });

  return (
    <div>
      <iframe
        id="iframeId"
        title="安全防护中心"
        src="http://192.168.212.55:8503"
        width="100%"
        height="900"
        sandbox="allow-scripts allow-top-navigation"
      ></iframe>
    </div>
  );
});

export default DefendProtect;
